<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="typed-strings">
      <p>Typed.js is a <strong>JavaScript</strong> library.</p>
      <p>It <em>types</em> out sentences.</p>
    </div>
    <span id="typed"></span>

    <!-- 引入js -->
    <script src="./typed.js"></script>
    <!-- js脚本 -->
    <script>
      var typed = new Typed("#typed", {
        stringsElement: "#typed-strings",
      });
    </script>
  </body>
</html>
